﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using Vega.USiteBuilder;
using SPCFMedicineInformer.DocumentTypes.Base;
using SPCFMedicineInformer.Masterpages;

namespace SPCFMedicineInformer.DocumentTypes
{
    [DocumentType(Name = "Admin ContentPage", AllowedTemplates = new string[] 
            { 
                "AdminContentPageATemplate"
                ,"Admin_CustomerListings"
                ,"Admin_MedicineListings"
                ,"Admin_SiteManagement"
                ,"Admin_EditMedicine"
                ,"Admin_AboutUs"
                ,"Admin_ContactInformation"
                ,"Admin_EmailTemplate"
                ,"Admin_Frontpage"
                ,"Admin_Slideshow"
                ,"Admin_Slideshow_Item"
                ,"Admin_CustomerDetails"
                ,"Admin_UserListings"
                ,"Admin_UserDetails"
                ,"Admin_SymptomDetails"
                ,"Admin_SymptomListing"
                ,"Admin_MedicineCategories"
                ,"Admin_MedicineCategoryDetails"
                ,"Admin_MedicineGenericNameDetails"
                ,"Admin_MedicineGenericNames"
                ,"Admin_Consultation"
                ,"Admin_AccountPage"
                ,"Admin_404NotFoundPage"
                ,"Admin_RegistrationPage"
                ,"Admin_LoginPage"
                ,"Admin_HomePage"
                ,"Admin_MedicineContentPage"
                ,"Admin_Utilities"
                ,"Admin_Members"
                ,"Admin_Users"
                ,"Admin_ConditionsListing"
                ,"Admin_ConditionDetail"
                , "Admin404Page"
                , "Admin_CommonConditionsListing"
                , "Admin_AbbreviationPage"
                , "Admin_ConditionListingPage"
                , "Admin_Abbreviations"
                , "Admin_Abbreviation_Detail"

            },
            DefaultTemplate = typeof(AdminContentPageATemplate),
            AllowedChildNodeTypes = new Type[] { 
                typeof(AdminContentPage) 
                ,typeof(DetailsPage)
                ,typeof(EmailTemplates)
            }
        )]
    public class AdminContentPage : AdminSite
    {
        [DocumentTypeProperty(UmbracoPropertyType.RichtextEditor, Name = "Content", Description = "",
            Tab = Constants.Tabs.Content)]
        public string Content { get; set; }
    }
}
